#include <string>
#include <vector>
#include <map>
using namespace std;
#include "RenderLib/RenderSys.h"
struct MyRGB
{
	MyRGB(float pr,float pg,float pb);
	float r,g,b;
};
struct WordCloud
{
	vector<string> *vs;
	vector<MyRGB> *vrgb;
	vector<double> *vd;
	vector<int> *ansx, *ansy;
	FBObj * fbobj;
};

class WordCloudSys
{
	SINGLETON_INNER_DECLARE(WordCloudSys)
public:
	void AddWordCloud(WordCloud * wc);
	void PopWord(int wcid, int num);
	void Resume(int wcid, int num);
	void Adjust(int wcid, string targetstr, int newv);
	void DrawWordClouds();
	void DrawWordCloudsToScreen();
	~WordCloudSys();
private:
	typedef map<int, WordCloud*> WordList;
	WordList wclist;
};
